package com.cksys.achievement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Min;

/**
 * @author tadechen
 * @since 2019-09-26
 */
@Data
@Accessors(chain = true)
public class Type {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 类型名称
     */
    private String name;

    /**
     * 该类型的父类型
     */
    @Min(value = 1L, message = "不能小于0")
    private Integer fId;

    /**
     * 该类型的等级
     */
    @Min(value = 1L, message = "不能小于0")
    private Integer level;


}
